package com.netty.future;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.Future;

/**
 * @author xl-9527
 * @since 2025/8/2
 **/
public class JdkFutureDemo {

    private final ExecutorService executor = Executors.newFixedThreadPool(1);

    public Future<String> getMsg() {
        return executor.submit(() -> "hello world");
    }
}
